package com.example.common.validation;


import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

@Target({ElementType.FIELD, ElementType.METHOD, ElementType.ANNOTATION_TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = IntegerEnumValidator.class)
@Documented
public @interface IntegerEnum {
    String message() default "不在有效范围内";

    int[] range() default {};

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}